package com.yitao.client.constant;

/**
 * Function:
 * Date: 2018/12/25
 *
 * @author skipper
 * @desc 订单相关枚举
 * @see
 */
public class OrderConstant {

    /**
     * banner类型
     */
    public enum OrderTypeEnum {
        /**
         * 普通订单
         */
        ORDINARY_ORDER(1),
        /**
         * 拼单订单 拼单发起
         */
        GROUP_ORDER_START(2),
        /**
         * 应邀拼单
         */
        INVITED_GROUP_ORDER(3)
        ;

        private Integer code;


        OrderTypeEnum(Integer code) {
            this.code = code;

        }

        public Integer getCode() {
            return code;
        }

    }

    /**
     * 订单轨迹-订单id类型
     */
    public enum OrderLogType{
        PARENT(0), // 父订单
        CHILD(1); // 子订单

        private Integer code;

        OrderLogType(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }

    }

    /**
     * 订单是否拆分包裹状态值
     */
    public enum SPLITTHEPARCEL{
        FALSE(0),
        TRUE(1);

        private Integer code;

        SPLITTHEPARCEL(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }

    }

    public enum UserType {
        MALL_USER(0),// 商城用户
        buyer_user(1); // 卖家用户

        private Integer code;

        UserType(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }

    }
}
